import { $http } from '@/utils/index.js'

//获取系统配置
export function getConfig() {
	return $http.get('Config/getConfig')
}

function upload(params) {
	return $http.upload('Upload/Upload', params)
}

//上传文件(音频)
export function uploadAudio(param) {
	const params = { ...param, fileType: 'audio',name:'file' }
	return upload(params)
}

//上传文件(视频)
export function uploadVideo(param) {
	const params = { ...param, fileType: 'video',name:'file' }
	return upload(params)
}

//上传图片
export function uploadImg(param) {
	const params = { ...param, fileType: 'image',name:'file' }
	return upload(params)
}

//获取单页
export function getTags(param){
	return $http.get('Tags/getTags',param)
}